/*
 * Created by JFormDesigner on Mon Dec 13 17:45:54 CST 2021
 */

package com.cn.项目.飞机预约管理系统.Maininterface;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

/**
 * @author Brainrain
 */
public class Success extends JFrame {
    public Success() {
        initComponents();
    }

    private void button1ActionPerformed(ActionEvent e) {

        this.dispose();
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        label1 = new JLabel();
        label2 = new JLabel();
        button1 = new JButton();

        //======== this ========
        setVisible(true);
        Container contentPane = getContentPane();
        contentPane.setLayout(null);

        //---- label1 ----
        label1.setText("您的操作成功！");
        label1.setForeground(new Color(51, 255, 0));
        label1.setFont(label1.getFont().deriveFont(label1.getFont().getStyle() & ~Font.BOLD, label1.getFont().getSize() + 6f));
        contentPane.add(label1);
        label1.setBounds(90, 35, 220, 45);

        //---- label2 ----
        label2.setText("请您进行下一步操作！！！！");
        label2.setForeground(new Color(51, 255, 0));
        label2.setFont(label2.getFont().deriveFont(label2.getFont().getStyle() & ~Font.ITALIC, label2.getFont().getSize() + 6f));
        contentPane.add(label2);
        label2.setBounds(60, 105, 300, 30);

        //---- button1 ----
        button1.setText("确定");
        button1.setForeground(new Color(0, 255, 102));
        button1.setFont(button1.getFont().deriveFont(button1.getFont().getSize() + 6f));
        button1.addActionListener(e -> button1ActionPerformed(e));
        contentPane.add(button1);
        button1.setBounds(100, 150, 115, 45);

        contentPane.setPreferredSize(new Dimension(350, 245));
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    private JLabel label1;
    private JLabel label2;
    private JButton button1;
    // JFormDesigner - End of variables declaration  //GEN-END:variables
}
